﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditRole.aspx.cs" Inherits="Skyworth.CRM.Web.SystemManagement.EditRole" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色编辑</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <%--[if IE]>
     <link href="../themes/css/ieHack.css" rel="stylesheet" type="text/css" />
    <![endif]--%>
    <script src="../javascripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <link href="../themes/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/core.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/pages.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/wbox.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/Messagebox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function() {

            $("#btnOk").click(function() {
                return SavaCheck();
            })
            $("#btnClose").click(function() {
                parent.addWindow.close();
                //parent.location.reload();
            })
        })

        function SavaCheck() {
            var objRole = $("#txtRoleName");
            var name = objRole.val();
            if (name == "" || name.length <= 0) {
                $("#txtMsg").text("请输入角色名称！");
                $("#txtMsg").fadeIn();
                objRole.focus();
                return false;
            }
        }
    </script>
    
    <style type="text/css">
        html
        {
            overflow-x: hidden;
        }
        table
        {
        	  border-collapse: collapse;
              border-spacing: 0;
              table-layout: fixed;
              width  : 100%;
              border: solid 1px #AAA;
        }
        table tr td
        {
        	 border-bottom: solid 1px #AAA;
        	 padding:0px 3px;
        	 background-color: #EFEFEF;       	 
        	 
        }
        td label
        {       	
        	 padding:2px 2px;
        }
        td.left
        {        	
        	border-right: solid 1px #AAA;
        	width: 65px;
        }  
        td.right
        {
        	background:#FFF;
        }
        td.right,td.readOnly
        {          
          padding:5px 3px;
        } 
       
        .txt
        {
        	  border: 1px solid #C3C3C3;
            color: #333333;
            font-family: Arial,Verdana,Helvetica,sans-serif;
            height: 20px;
            line-height: 20px;
            width:290px;
        }    
       .red
       {
       	color:Red; font-weight :bold;
       }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td class="left">
                    <label for="txtRoleName">
                        角色名称：</label>
                </td>
                <td class="right">
                    <asp:TextBox ID="txtRoleName" CssClass="txt" runat="server" MaxLength="50"></asp:TextBox><em class="red">*</em>
                </td>
            </tr>
            <tr>
                <td class="left">
                    <label for="txtRoleDescription">
                        角色说明：</label>
                </td>
                <td class="right">
                    <asp:TextBox ID="txtRoleDescription" runat="server" TextMode="MultiLine" 
                        MaxLength="100" Rows="5" Columns="10" style="width:285px; font-size:small; height:112px"></asp:TextBox>
                </td>
            </tr>
           
            <tr>
                <td colspan="2" class="readOnly" style="padding-right:12px; background:url('../themes/silver/images/grid/grid.png') repeat scroll 0 0">
                    
                    <a title="关闭该页面" href="javascript:void(0)" class="button" style="float:left" id="btnClose"><span>关闭</span></a>
                     <span style="padding:5px;display:none; width:150px;float:left" class="red" id="txtMsg"></span>  
                   
                    <div class="buttonActive" style="float:right">
                        <div class="buttonContent" >
                            <asp:Button ID="btnOk" runat="server" Text="确定"  CssClass="serverButton" 
                                onclick="btnOk_Click" />
                         </div>
                    </div>
                    <%--<div class="buttonDisabled" >
                        <div class="buttonContent">
                            <button>
                                我被禁用</button></div>
                    </div>--%>
                </td>
            </tr>
        </table>
             
    </div>
    </form>
</body>
</html>
